package com.cheems.springbootinit.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@TableName(value = "course_watch_record")
@Data
public class CourseWatchRecord implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long id;
    
    @TableField("user_id")
    private Long userId;
    
    @TableField("course_id")
    private Long courseId;
    
    @TableField("chapter_id")
    private Long chapterId;
    
    @TableField("watch_duration")
    private Integer watchDuration;
    
    @TableField("watch_time")
    private Date watchTime;
    
    @TableField("create_time")
    private Date createTime;
    
    @TableField("update_time")
    private Date updateTime;
    
    private static final long serialVersionUID = 1L;
} 